/*
 * Sesame Inc.
 * Copyright (c) 2009 All Rights Reserved.
 */
package com.sesame.domain;

import java.util.Date;
import org.compass.annotations.*;

import com.sesame.toolkit.CustomFilter;

/**
 * @author shubeta
 * 
 */
@Searchable
public class User {

    private Integer id;
    private String email;
    private String password;
    private String nickName;
    private Date regTime;
    private Date lastLogin;
    private String gender;
    private String headPic;
    private String qq;
    private String msn;
    private String job;
    private String hometown;
    private String location;
    private String introduction;
    private String hobby;
    private String homePage;

    @SearchableId
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @SearchableProperty(index = Index.TOKENIZED, store = Store.YES)
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = CustomFilter.customFilter(password);
    }

    @SearchableProperty(boost = 2)
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = CustomFilter.customFilter(nickName);
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }

    public Date getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(Date lastLogin) {
        this.lastLogin = lastLogin;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @SearchableProperty(index = Index.NO, store = Store.YES)
    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = CustomFilter.customFilter(qq);
    }

    public String getMsn() {
        return msn;
    }

    public void setMsn(String msn) {
        this.msn = CustomFilter.customFilter(msn);
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = CustomFilter.customFilter(job);
    }

    public String getHometown() {
        return hometown;
    }

    public void setHometown(String hometown) {
        this.hometown = CustomFilter.customFilter(hometown);
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = CustomFilter.customFilter(location);
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = CustomFilter.customFilter(introduction);
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = CustomFilter.customFilter(hobby);
    }

    public String getHomePage() {
        return homePage;
    }

    public void setHomePage(String homePage) {
        this.homePage = CustomFilter.customFilter(homePage);
    }

}